home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GWMALLOC.ZIP;1 / GWMALLOC.TAR / gw_malloc / mallocrc < prev    next >
Encoding:
Text File  |  1993-04-08  |  3.2 KB  |  96 lines

  1. #
  2. # Sample Malloc rc file for the debug malloc library
  3. # Rename this to .mallocrc and place in your home directory to activate.
  4. # See malloc.info for more information
  5. #
  6. # $Id: mallocrc,v 1.7 1993/04/05 22:30:25 gray Exp $
  7. #
  8.  
  9. #
  10. # Lines in this file should have the form:
  11. #
  12. #    tag    token1, token2, ...
  13. #
  14. # The above 'tag' is then passed to the 'malloc' alias to set the current
  15. # debugging functionality to token1, token2, ...
  16. #
  17. # Tag lines can be finished with a \ meaning it continues onto the next line.
  18. # Lines begining with '#' or empty lines are ignored
  19. #
  20.  
  21. #
  22. # Token:            Description:
  23. ###########################################################################
  24. # none                no debuging functionality
  25. #
  26. # log-stats            log general statistics
  27. # log-non-free            log non-freed memory pointers on shutdown
  28. # log-perror            log error codes and messages
  29. # log-trans            log memory transactions
  30. # log-bad-pnt            log information about bad-pointers
  31. # log-admin            log full administrative information
  32. # log-blocks            log detailed block information in heap_map
  33. # log-unknown            log unknown non-freed memory pointers too
  34. #
  35. # check-fence            check fence-post areas
  36. # check-heap            do general heap checking
  37. # check-lists            verify internal heap linked-lists
  38. # check-dblock            do detailed checking on small allocations
  39. # check-dblock-fence        check the fence-post areas of small allocations
  40. # check-free            check to see if free space has been overwritten
  41. # check-funcs            check the arguments of some routines
  42. #
  43. # realloc-copy            always copy data to a new pointer when realloc
  44. # free-blank            overwrite space that is freed
  45. # error-abort            abort the program (and dump core) on errors
  46. # alloc-blank            overwrite space that is to be alloced
  47. # heap-check-map        log a heap-map every time the heap is checked
  48. # print-perror            dump errors and messages to STDERR
  49. #
  50.  
  51. # no debugging
  52. none    none
  53.  
  54. # basic production
  55. production    log-stats, log-non-free, log-perror, log-bad-pnt
  56.  
  57. # basic runtime
  58. runtime        log-stats, log-non-free, log-perror, log-bad-pnt, \
  59.         check-fence
  60.  
  61. # more logging and some heap checking
  62. 2        log-stats, log-non-free, log-perror, log-trans, log-bad-pnt, \
  63.         check-fence, check-heap, check-lists, check-dblock-fence, \
  64.         error-abort
  65.  
  66. # good checking functionality
  67. 3        log-stats, log-non-free, log-perror, log-trans, log-bad-pnt, \
  68.         log-admin, log-blocks, \
  69.         check-fence, check-heap, check-lists, check-dblock-fence,
  70.         check-funcs, \
  71.         realloc-copy, free-blank, alloc-blank, error-abort
  72.  
  73. # extensive checking
  74. 4        log-stats, log-non-free, log-perror, log-trans, log-bad-pnt, \
  75.         log-admin, log-blocks, \
  76.         check-fence, check-heap, check-lists, check-dblock, \
  77.         check-fence-dblock, check-funcs, \
  78.         realloc-copy, free-blank, alloc-blank, error-abort
  79.  
  80. # ultra-extensive checking
  81. 5        log-stats, log-non-free, log-perror, log-trans, log-bad-pnt, \
  82.         log-admin, log-blocks, \
  83.         check-fence, check-heap, check-lists, check-dblock, \
  84.         check-dblock-fence, check-free, check-funcs, \
  85.         realloc-copy, free-blank, alloc-blank, error-abort
  86.  
  87. # full fence-post checking
  88. fence        log-stats, log-non-free, log-perror, log-bad-pnt, \
  89.         check-fence, check-dblock-fence
  90.  
  91. # full logging of statistics to logfile and screen
  92. log        log-stats, log-non-free, log-perror, log-trans, log-bad-pnt, \
  93.         log-admin, log-blocks, \
  94.         check-fence, \
  95.         heap-check-map, print-perror
  96.